package gui;

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;

public class AutoDialogMessegaes {

	/**
	 * displays an error msg to the user
	 * @param title - the title of the msg
	 * @param error - the error info: what went wrong
	 */
	public static void displayErrorMsg(String title, String error, Shell shell){
		MessageDialog msg = new MessageDialog(shell,title,null,error,MessageDialog.ERROR,new String[] {"OK"},1);
		msg.open();
	}
	
	public static void displayFeedbackMsg(String title, String feedback, Shell shell){
		MessageDialog msg = new MessageDialog(shell,title,null,feedback,MessageDialog.INFORMATION,new String[] {"OK"},1);
		msg.open();
	}
}
